import backstageManager from "./backstageManager.vue"
import backstageLogin from "./backstageLogin.vue"

import referenceArticle from './referenceManager/referenceArticle.vue';
import travelNotesArticle from './travelNotesManager/travelNotesArticle.vue';

import menuList from './menuList';

export default [
  {
    path: '/backstage-manager',
    name: 'backstageManager',
    component: backstageManager,
    children: [
      ...menuList,
      {
        //新建攻略
        path: 'reference-new',
        component: referenceArticle,
        meta: {
          tag: 1
        }
      }, {
        //修改攻略
        path: 'reference-edit/:guideid/:guidetitle/:authornme/:guidesrc/:guidetext',
        component: referenceArticle,
        meta: {
          tag: 1
        }
      },
      {
        //新建游记
        path: 'travel-notes-new',
        component: travelNotesArticle,
        meta: {
          tag: 1
        }
      },
      {
        //修改游记
        path: 'travel-notes-edit/:noteid/:notetitle/:authornme/:date/:reportstate/:note',
        component: travelNotesArticle,
        meta: {
          tag: 1
        }
      }
    ]
  },
  {
    path: '/backstage-login',
    name: 'backstageLogin',
    component: backstageLogin,
  }
]
